 function initializePageNav(iCurrPage,count)
    	   {
    	    var iPageSize = 8;
    	    var iProCount = count;
    	    var b = ((iProCount%iPageSize)!=0);
    	    var iPageCount = parseInt(iProCount/iPageSize)+(b?1:0);
    	    if (iCurrPage > iPageCount) return false;
    	    iCurrPage = parseInt(iCurrPage);
    	    var sTemp = "";
    	    var sTemp1 = "每页:"+ iPageSize +"/<span style='color:red'>"+ iProCount +"</span>条  页数:<span style='color:blue'>"+ iCurrPage +"</span>/"+ iPageCount +"页";
    	    //var sTemp2 = "<input type=\"text\" id=\"goPageNo\" value=\""+iCurrPage+"\" size=\"3\" /><input type=\"button\" value=\"GO\"  />";
    	    var sTemp2 = "";
    	    
    	  //  alert($("#nbkind").val() + "---index");
    	    if($("#nbkind").val()=="news")
    	    {if (iProCount==0)
    	    {
       	     sTemp = "<font color='#cccccc'>首页 上一页 下一页 末页</font>";
       	    }
       	    else if (iPageCount==1)
       	    {
       	     sTemp = "<font color='#cccccc'>首页 上一页 下一页 末页</font>";
       	    }//欢迎来到站长特效网，我们的网址是www.zzjs.net，很好记，zz站长，js就是js特效，本站收集大量高质量js代码，还有许多广告代码下载。
       	    else if (iPageCount==iCurrPage)
       	    {
       	    	
       	     $('.discuss:lt('+((iCurrPage-1)*iPageSize)+')').addClass("none");  
       	     $('.discuss:gt('+((iCurrPage-1)*iPageSize-1)+')').removeClass("none");
       	     sTemp = "<a href='Javascript:initializePageNav(1,"+iProCount+")'>首页</a> <a href='Javascript:initializePageNav("+(iPageCount-1)+","+iProCount+")'>上一页</a> <font color='#cccccc'>下一页 末页</font>";
       	    }
       	    else if (iCurrPage==1)
       	    {
       	     sTemp = "<font color='#cccccc'>首页 上一页 </font><a href='Javascript:initializePageNav("+(iCurrPage+1)+","+iProCount+")'>下一页</a> <a href='Javascript:initializePageNav("+iPageCount+","+iProCount+")'>末页</a>";
       	     $(".discuss:gt("+((iCurrPage-1)*iPageSize+iPageSize-1)+")").addClass("none");
       	     $(".discuss:lt("+((iCurrPage-1)*iPageSize+iPageSize)+")").removeClass("none");
       	     
       	    }
       	    else
       	    {
       	    	if(iPageSize == 1 )
      	    	 {
      	    	 $(".discuss:gt("+((iCurrPage-1)*iPageSize+iPageSize-1)+")").addClass("none");
          	     alert("asd");
          	     $(".discuss:lt("+((iCurrPage-1)*iPageSize+iPageSize-1)+")").addClass("none");
          	     $('.discuss:eq('+((iCurrPage-1)*iPageSize+iPageSize-1)+')').removeClass("none");
      	    	 }else if(iPageSize>1){
      	    		 $(".discuss:lt("+((iCurrPage-1)*iPageSize)+")").addClass("none");  	    		
      	    		 $(".discuss:gt("+((iCurrPage-1)*iPageSize + iPageSize-1)+")").addClass("none"); 	    		
      	    		$(".discuss:lt("+((iCurrPage-1)*iPageSize + iPageSize)+"):gt("+(((iCurrPage-1)*iPageSize)-1)+")").removeClass("none"); 
      	    	 }	
       	     sTemp = "<a href='Javascript:initializePageNav(1,"+iProCount+")'>首页</a> <a href='Javascript:initializePageNav("+(iCurrPage-1)+","+iProCount+")'>上一页</a> <a href='Javascript:initializePageNav("+(iCurrPage+1)+","+iProCount+")'>下一页</a> <a href='Javascript:initializePageNav("+(iPageCount)+","+iProCount+")'>末页</a>";
       	     
       	    }
    	    	
    	    	 $("#pageDir").html(sTemp +"  "+ sTemp2 + "  " + sTemp1) ;
    	    }else{
    	    	if (iProCount==0)
        	    {
        	     sTemp = "<font color='#cccccc'>首页 上一页 下一页 末页</font>";
        	    }
        	    else if (iPageCount==1)
        	    {
        	     sTemp = "<font color='#cccccc'>首页 上一页 下一页 末页</font>";
        	    }//欢迎来到站长特效网，我们的网址是www.zzjs.net，很好记，zz站长，js就是js特效，本站收集大量高质量js代码，还有许多广告代码下载。
        	    else if (iPageCount==iCurrPage)
        	    {
        	    	
        	     $('.discuss1:lt('+((iCurrPage-1)*iPageSize)+')').addClass("none");  
        	     $('.discuss1:gt('+((iCurrPage-1)*iPageSize-1)+')').removeClass("none");
        	     sTemp = "<a href='Javascript:initializePageNav(1,"+iProCount+")'>首页</a> <a href='Javascript:initializePageNav("+(iPageCount-1)+","+iProCount+")'>上一页</a> <font color='#cccccc'>下一页 末页</font>";
        	    }
        	    else if (iCurrPage==1)
        	    {
        	     sTemp = "<font color='#cccccc'>首页 上一页 </font><a href='Javascript:initializePageNav("+(iCurrPage+1)+","+iProCount+")'>下一页</a> <a href='Javascript:initializePageNav("+iPageCount+","+iProCount+")'>末页</a>";
        	     $(".discuss1:gt("+((iCurrPage-1)*iPageSize+iPageSize-1)+")").addClass("none");
        	     $(".discuss1:lt("+((iCurrPage-1)*iPageSize+iPageSize)+")").removeClass("none");
        	     
        	    }
        	    else
        	    {
        	    	if(iPageSize == 1 )
       	    	 {
       	    	 $(".discuss1:gt("+((iCurrPage-1)*iPageSize+iPageSize-1)+")").addClass("none");
           	     alert("asd");
           	     $(".discuss1:lt("+((iCurrPage-1)*iPageSize+iPageSize-1)+")").addClass("none");
           	     $('.discuss1:eq('+((iCurrPage-1)*iPageSize+iPageSize-1)+')').removeClass("none");
       	    	 }else if(iPageSize>1){
       	    		 $(".discuss1:lt("+((iCurrPage-1)*iPageSize)+")").addClass("none");  	    		
       	    		 $(".discuss1:gt("+((iCurrPage-1)*iPageSize + iPageSize-1)+")").addClass("none"); 	    		
       	    		$(".discuss1:lt("+((iCurrPage-1)*iPageSize + iPageSize)+"):gt("+(((iCurrPage-1)*iPageSize)-1)+")").removeClass("none"); 
       	    	 }	
        	     sTemp = "<a href='Javascript:initializePageNav(1,"+iProCount+")'>首页</a> <a href='Javascript:initializePageNav("+(iCurrPage-1)+","+iProCount+")'>上一页</a> <a href='Javascript:initializePageNav("+(iCurrPage+1)+","+iProCount+")'>下一页</a> <a href='Javascript:initializePageNav("+(iPageCount)+","+iProCount+")'>末页</a>";
        	     
        	    }
    	    	//alert("........");
    	    	 $("#pageDir1").html(sTemp +"  "+ sTemp2 + "  " + sTemp1) ;
    	    }
    	    
    	   }